"""
数据模型定义模块
包含所有Pydantic模型和数据结构
"""

from pydantic import BaseModel
from typing import Optional

class ImageCheckRequest(BaseModel):
    """图片检查请求模型"""
    image_url: str

class CheckResult(BaseModel):
    """图片检查结果模型"""
    合规: bool
    说明: str
    详细检查结果: dict
    original_image_url: Optional[str] = None
    request_id: str
    timestamp: str

class UploadCheckResult(BaseModel):
    """文件上传检查结果模型"""
    合规: bool
    说明: str
    详细检查结果: dict
    original_filename: Optional[str] = None
    request_id: str
    timestamp: str
